package com.xq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;
import java.util.Collections;

/**
 * user实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User  {
    //@TableId(type = IdType.AUTO) //开启主键自增操作
    @TableId(type = IdType.ASSIGN_ID) // 使用雪花算法生成 ID
    private Long id;

    private String username;

    private String password;

    private String phone;

}
